import { oneNet } from '@/utils'

export * from './user'
export * from "./article"
export * from "./file"
export * from "./product"

// GenerateIndexPageInfo 更新主页信息
export const GenerateIndexPageInfo = (data: any) => {
  return oneNet.post({
    url: "/index", 
    data
  })
}

// FindIndexPageInfo 获取首页数据 
export const FindIndexPageInfo = (lang: string) => {
  return oneNet.get({url: "/index?lang=" + lang })
}